package com.zx.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Score {

    private String studentName;

    private Integer shuxue;

    private Integer yingyu;

    private Integer yuwen;

    public Score addShuxue(final Integer shuxue) {
        this.shuxue += shuxue;
        return this;
    }

    public Score addYingyu(final Integer yingyu) {
        this.yingyu += yingyu;
        return this;
    }

    public Score addYuwen(final Integer yingyu) {
        this.yingyu += yingyu;
        return this;
    }

}
